package com.admin.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 学院表
 * </p>
 *
 * @author szy
 * @since 2023-03-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("academy")
public class Academy implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id：自增
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学院名称
     */
    private String academyName;


    /**
     * 院长id：关联用户表
     */
    private Integer deanId;

    /**
     * 副院长id：关联用户表
     */
    private Integer associateDeanId;

    /**
     * 建院时间
     */
    private Date academyBuildTime;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;


}
